﻿<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://cdn.staticfile.net/clipboard.js/2.0.11/clipboard.min.js"></script>
<title>支付结果</title>
<style type="text/css">
<!--
.top {
	background-color: #0099CC;
	height: 53px;
	line-height:53px;
}
.from{
	height: 280px;
	}
.end{
background-color: #000000;
	height: 40px;
	line-height:40px;
	}
.end a{
	font-size: 15px;
	color: #FFFFFF;
}
.top a{
	font-size: 18px;
	font-weight: bold;
	color: #FFFFFF;
}
body {
	background-color: #F2F2F2;
}
body,td,th {
	font-size: 16px;
	color: #999999;
}
.from a {
	display: table;
}
.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}
-->
</style>
</head>

<body>
<div align="center" class="top"><a>支付结果</a></div>
<div style="background-color: #ffffff;" align="center" class="from"><a><%
pid=request("pid")
money=request("money")
if pid="142719825" and request.QueryString("trade_status")="TRADE_SUCCESS" and request("name")<>"" then
Response.Write "购买成功！<br><br>本次支付金额："&money&"(元)<br><br>订单号码："&request("out_trade_no")&"<br>交易号："&request("trade_no")&"<br><br>你的激活码9899877669786<br><button id='btn' class='button' data-clipboard-text='9899877669786' onclick='copyText()'>复制密码</button></div>"
else
Response.Write "充值失败！<br><br>本次支付金额："&money&"(元)<br><br>订单号码："&request("out_trade_no")&"<br>交易号："&request("trade_no")&"<br><br>失败原因：未完成支付！"
end if
%>
</a>
<div align="center" class="end"><a>请在支付成功后点击复制去游戏粘贴就可以了</a></div>
</body>
<script>
	var clipboard = new ClipboardJS('#btn');
    clipboard.on('success', function(e) {
        alert("复制成功");
    });
    clipboard.on('error', function(e) {
        alert("复制失败");
    });

</script>
</html>

